module.exports = {
    entry: './index.js',
    output: {
        path: __dirname, //__dirname当前执行脚本的所在目录
        filename: 'boundle.js'
    },
    resolve: {
        extensions: ['.js', '.jsx']
    },
    module: {
        loaders: [
            { test: /\.js$/, 
                loaders: 'babel-loader',
                query: {
                    presets: ['es2015']
                }
                
            }
        ]
    }
}